Updating the FieldMappers to insert call addField of DocumentInput#21001
Updating the FieldMappers to insert call addField of DocumentInput#21001darjisagar7 wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
|
Failed to generate code suggestions for PR |
|
❌ Gradle check result for 7f26163: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
7f26163 to
80f72cd
Compare
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 80f72cd.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Failed to generate code suggestions for PR |
80f72cd to
93426fa
Compare
|
Failed to generate code suggestions for PR |
93426fa to
2fc592f
Compare
|
Failed to generate code suggestions for PR |
2fc592f to
6101886
Compare
PR Reviewer Guide 🔍(Review updated until commit 216d68a)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 216d68a Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 6036bb4
Suggestions up to commit 6101886
|
6101886 to
6036bb4
Compare
| * @param settings the index settings to check | ||
| * @return {@code true} if the pluggable dataformat feature flag and the optimised index setting are both enabled | ||
| */ | ||
| public static boolean isOptimisedIndexEnabled(Settings settings) { |
There was a problem hiding this comment.
Can you rename this to isPluggableDataFormatEnabled?
|
Persistent review updated to latest commit 6036bb4 |
| protected MultiFields multiFields; | ||
| protected CopyTo copyTo; | ||
| protected DerivedFieldGenerator derivedFieldGenerator; | ||
| protected int isPluggableDataFormatFeatureEnabled; |
There was a problem hiding this comment.
This should follow an AtomicReference#compareAndSet
1. Introducing FeatureFlag and Index Setting for pluggable dataformat feature. 2. Updating the FieldMappers to insert fields in DocumentInput for Multi Format Engine Signed-off-by: Sagar Darji <darsaga@amazon.com>
6036bb4 to
216d68a
Compare
|
Persistent review updated to latest commit 216d68a |
|
Bukhtawar
left a comment
There was a problem hiding this comment.
Does it make sense to have a clean branching using something like this in FieldMapper
public void parse(ParseContext context) throws IOException {
try {
if (isPluggableDataFormatFeatureEnabled(context)) {
parseCreateFieldPluggable(context);
} else {
parseCreateField(context);
}
extractGroupingCriteriaParams(context);
} catch (Exception e) {
// ... existing error handling
}
multiFields.parse(this, context);
}
Description
This PR adds the following functionalities:
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.